package com.bla.dao.myprojectdb;

import com.bla.dao.myprojectdb.entity.LeaderOrderDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author yzw
 * @date 2022/1/23 12:14
 * @desc 团长订单操作
 */
@Mapper
@Repository
public interface LeaderOrderDAO {

    /**
     * 插入
     * @param leaderOrderDO
     */
    void insertOrder(LeaderOrderDO leaderOrderDO);

    /**
     * 根据orderId获取version
     * @param orderId
     * @return
     */
    Integer getVersionByOrderId(String orderId);

    /**
     * 更新订单状态
     * @param leaderOrderDO
     */
    void updateOrderStatus(LeaderOrderDO leaderOrderDO);

}
